package cn.wolfcode.ssm.util;

import cn.wolfcode.ssm.domain.Employee;
import org.apache.shiro.SecurityUtils;


public class UserContext {


    // 获取session
    public static Employee getEmployee(){
        return (Employee) SecurityUtils.getSubject().getPrincipal();
    }

}
